package yunhe.biz.impl;

import org.apache.ibatis.session.SqlSession;
import yunhe.biz.EmpMsgBiz;
import yunhe.dao.IEmpMsg;
import yunhe.entity.EmpMsg;
import yunhe.util.SqlSessionFactoryUtil;

import java.util.List;

/**
 * Created by lzh on 2017/6/16.
 */
public class EmpMsgBizImpl implements EmpMsgBiz {

    private  SqlSession ss= SqlSessionFactoryUtil.getSqlSession();
    private  IEmpMsg iem=ss.getMapper(IEmpMsg.class);
    public List<EmpMsg> getAllEmp() {

        return iem.getAllEmp();
    }

    @Override
    public EmpMsg getEmpByWorkId(String workId) {

        return iem.getEmpByWorkId(workId);
    }
}
